// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
//
// ███╗   ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗  ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║   ██║   ██║   ██║██║     █████╗
// ██║╚██╗██║██║   ██║   ██║   ██║██║     ██╔══╝
// ██║ ╚████║╚██████╔╝   ██║   ██║╚██████╗███████╗
// ╚═╝  ╚═══╝ ╚═════╝    ╚═╝   ╚═╝ ╚═════╝╚══════╝
// ------------------------------------------------
//
// This file is automatically generated.
// Please do not edit these files manually.
//
// ------------------------------------------------

#nullable restore

using System;
using System.Linq;
using Elastic.Clients.Elasticsearch.Serialization;

namespace Elastic.Clients.Elasticsearch.Cluster;

[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Cluster.Json.UnassignedInformationReasonConverter))]
public enum UnassignedInformationReason
{
	[System.Runtime.Serialization.EnumMember(Value = "ALLOCATION_FAILED")]
	AllocationFailed,
	[System.Runtime.Serialization.EnumMember(Value = "CLUSTER_RECOVERED")]
	ClusterRecovered,
	[System.Runtime.Serialization.EnumMember(Value = "DANGLING_INDEX_IMPORTED")]
	DanglingIndexImported,
	[System.Runtime.Serialization.EnumMember(Value = "EXISTING_INDEX_RESTORED")]
	ExistingIndexRestored,
	[System.Runtime.Serialization.EnumMember(Value = "FORCED_EMPTY_PRIMARY")]
	ForcedEmptyPrimary,
	[System.Runtime.Serialization.EnumMember(Value = "INDEX_CREATED")]
	IndexCreated,
	[System.Runtime.Serialization.EnumMember(Value = "INDEX_REOPENED")]
	IndexReopened,
	[System.Runtime.Serialization.EnumMember(Value = "MANUAL_ALLOCATION")]
	ManualAllocation,
	[System.Runtime.Serialization.EnumMember(Value = "NEW_INDEX_RESTORED")]
	NewIndexRestored,
	[System.Runtime.Serialization.EnumMember(Value = "NODE_LEFT")]
	NodeLeft,
	[System.Runtime.Serialization.EnumMember(Value = "PRIMARY_FAILED")]
	PrimaryFailed,
	[System.Runtime.Serialization.EnumMember(Value = "REALLOCATED_REPLICA")]
	ReallocatedReplica,
	[System.Runtime.Serialization.EnumMember(Value = "REINITIALIZED")]
	Reinitialized,
	[System.Runtime.Serialization.EnumMember(Value = "REPLICA_ADDED")]
	ReplicaAdded,
	[System.Runtime.Serialization.EnumMember(Value = "REROUTE_CANCELLED")]
	RerouteCancelled
}